package com.xiangwei.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import com.xiangwei.entity.Product;
import com.xiangwei.entity.Vendor;
import com.xiangwei.view.ProductView;
import com.xiangwei.view.VendorView;

public interface IProductService {

	 public void deleteByPrimaryKey(Integer productId,HttpServletRequest request);
	 public void insert(Product record,String[] cName,String[] cValue);
	 public Product selectByPrimaryKey(Integer productId);
     public void updateByPrimaryKey(Product record,String[] cName,String[] cValue,
 			String[] eId);
     public Product getProduct(Integer productId);
     public List<Product> getAll(Integer start, Integer pageSize);
     public List<Product> getProductList(Integer vendorId);
     public Integer getCount();
     public List<Vendor> selectByVendorName(String vendorName);
     public List<Product> selectProductByVendorName(String productName);
     public int checkProductName(String productName,String vId,String id);
     public int updateByPrimaryKeySelective(Product record);
     
     public ProductView selectProductViewById(String id);
     
     public int findProductCount(String vId);
     
     public List<Product> getProductAllList();
     
     public Product getMaxIdProduct();
}
